﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Bai_3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.Fixed3D;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Opacity = 0.5;
        }

        private void button4_Click(object sender, EventArgs e)
        {
            System.Drawing.Drawing2D.GraphicsPath mypaths = new System.Drawing.Drawing2D.GraphicsPath();
            mypaths.AddEllipse(0, 0, this.Width, this.Height);
            Region myregion = new Region(mypaths);
            this.Region = myregion;
        }
    }
}
